# coding: utf8
from flask import Blueprint
from utils.blueprint_util import add_resource
from . import views

user_blueprint = Blueprint('user', __name__, url_prefix='/user')
config = [
    (views.UserView, '/'),
    (views.SearchUserView, '/searchUser'),
    (views.LoginView, '/login'),
    (views.mLoginView, '/mlogin'),
    (views.InsertUserView, '/addUser'),
    (views.SearchHotelView, '/searchHotel'),
    (views.InsertHotelView, '/addHotel'),
    (views.UpdateHotelView, '/updateHotel'),
    (views.GetHotelView, '/getHotel'),
    (views.GetHotelRoomView, '/getRoom'),
    (views.InsertHotelRoomView, '/addRoom'),
    (views.UpdateHotelRoomView, '/updateRoom'),
    (views.DeleteHotelRoomView, '/deleteRoom')
]
add_resource(user_blueprint, config)